<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>First Consult</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<%  String status = ""; %>
 <div id="middlePan">

		<div id="middlebodyPan">
	<h1>Post a question </h1>
	
	<form id="postquestion" name="postquestion" method="post" action="Login">
		      <p class="note"><span class="req" style="color:red;">*</span> Asterisk fields are required</p>
		      <div class="row">
		        <label for="name">Post label <span class="req" style="color:red;">*</span></label>
		        <input type="text" autofocus name="label" id="label" class="txt" tabindex="1" required>
		      </div>
		      
		      <div class="row">
		        <label for="question">Question <span class="req" style="color:red;">*</span></label>
		        <textarea rows="2" name="question" id="question" class="txt" tabindex="2" style="width: 349px; height: 39px;resize:none;" required></textarea>
		      </div>
		      
		       <div class="center">
		        <input type="submit" id="submitbtn" name="question" tabindex="5" value="Post">
		      </div>
		         <%
		     
		      if(request.getAttribute("postStatus")!=null) 
		    	  status = request.getAttribute("postStatus").toString();
		        else
		        	status = "";
		        		%>
       	
		        		<p><b><%=status%></b></p>
		      </form>
		      <% status = "";%>
		      </div>	     
 </div>	  		
</body>
</html>